package com.syyo.admin.utils;


import com.syyo.admin.common.enums.ResultEnum;
import com.syyo.admin.domain.ResultVo;

/**
 * @Auther: wangzhong
 * @Date: 2020/1/8 17:28
 * @Description: 封装的返回类
 */
public class R {

    public static ResultVo ok(Object obj) {
        ResultVo<Object> resultVo = new ResultVo<>();
        resultVo.setData(obj);
        resultVo.setCode(ResultEnum.OK.getCode());
        resultVo.setMessage(ResultEnum.OK.getMessage());
        return resultVo;
    }
}
